package com.bike.entity;

import java.math.BigDecimal;

import org.springframework.util.StringUtils;

import com.bike.util.Constant;
import com.bike.util.TimeManager;

public class HhBusinessParent {
	 private Long businessParentId; 
	 private String name; 
	 private String contract; 
	 private String contractPhone; 
	 private BigDecimal yearFee; 
	 private String address; 
	 private Integer lastDate; 
	 private String card; 
	 private String cardReverse; 
	 private String businessProve; 
	 private String taxProve; 
	 private Long agentId; 
	 private String agentName; 
	 private Integer status; 
	 private Integer addTime; 
	 
	 
	 private String text; 
	 private Long id; 
	 
	 
    public String getText() {
		return name;
	}
	public void setText(String text) {
		this.text = text;
	}
	public Long getId() {
		return businessParentId;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getBusinessParentId() {
        return businessParentId;
    }
     public void setBusinessParentId(Long businessParentId) {
        this.businessParentId = businessParentId;
    }
    public String getName() {
        return name==null?"":name.toString().trim();
    }
     public void setName(String name) {
        this.name = name;
    }
    public String getContract() {
        return contract==null?"":contract.toString().trim();
    }
     public void setContract(String contract) {
        this.contract = contract;
    }
    public String getContractPhone() {
        return contractPhone==null?"":contractPhone.toString().trim();
    }
     public void setContractPhone(String contractPhone) {
        this.contractPhone = contractPhone;
    }
    public BigDecimal getYearFee() {
        return yearFee;
    }
     public void setYearFee(BigDecimal yearFee) {
        this.yearFee = yearFee;
    }
    public String getAddress() {
        return address==null?"":address.toString().trim();
    }
     public void setAddress(String address) {
        this.address = address;
    }
    public Integer getLastDate() {
        return lastDate;
    }
     public void setLastDate(Integer lastDate) {
        this.lastDate = lastDate;
    }
    public String getCard() {
        return StringUtils.isEmpty(card)?Constant.uploadDefaultImg:card;
    }
     public void setCard(String card) {
        this.card = card;
    }
    public String getCardReverse() {
        return StringUtils.isEmpty(cardReverse)?Constant.uploadDefaultImg:cardReverse;
    }
     public void setCardReverse(String cardReverse) {
        this.cardReverse = cardReverse;
    }
    public String getBusinessProve() {
        return StringUtils.isEmpty(businessProve)?Constant.uploadDefaultImg:businessProve;  
    }
     public void setBusinessProve(String businessProve) {
        this.businessProve = businessProve;
    }
    public String getTaxProve() {
        return   StringUtils.isEmpty(taxProve)?Constant.uploadDefaultImg:taxProve;  
    }
     public void setTaxProve(String taxProve) {
        this.taxProve = taxProve;
    }
    public Long getAgentId() {
        return agentId;
    }
     public void setAgentId(Long agentId) {
        this.agentId = agentId;
    }
    public String getAgentName() {
        return agentName==null?"":agentName.toString().trim();
    }
     public void setAgentName(String agentName) {
        this.agentName = agentName;
    }
    public Integer getStatus() {
        return status;
    }
     public void setStatus(Integer status) {
        this.status = status;
    }
    public Integer getAddTime() {
        return addTime;
    }
     public void setAddTime(Integer addTime) {
        this.addTime = addTime;
    }
     
     public String getLastDateText() {
     	if(lastDate!=null&&lastDate>0){
     		return TimeManager.TimeToString(lastDate*1000L, "yyyy-MM-dd");
     	}
 		return "";
 	}
}